package com.fortune.service;

import com.fortune.dto.in.mSpecification.SpecificationAddDto;
import com.fortune.dto.in.mSpecification.SpecificationEditDto;
import com.fortune.dto.in.mSpecification.SpecificationListDto;
import com.fortune.vo.mSpecification.MSpecification;

import java.util.List;

public interface MSpecificationService {

    /**
     * 查询规格码表
     * @param companyId
     * @param specificationListDto
     * @return
     */
    List<MSpecification> queryMSpecificationList(String companyId,SpecificationListDto specificationListDto);

    /**
     * 查询规格码表个数
     * @param companyId
     * @param specificationListDto
     * @return
     */
    int queryMSpecificationListCount(String companyId,SpecificationListDto specificationListDto);

    /**
     * 添加规格
     * @param companyId
     * @param specificationAddDto
     * @return
     */
    int addMSpecification(String companyId,SpecificationAddDto specificationAddDto);

    /**
     * 编辑规格
     * @param companyId
     * @param specificationEditDto
     * @return
     */
    int editMSpecification(String companyId,SpecificationEditDto specificationEditDto);

    /**
     * 删除规格
     * @param companyId
     * @param specificationId
     * @return
     */
    int deleteMSpecification(String companyId,String specificationId);

    /**
     * 添加时查重
     * @param companyId
     * @param specificationAddDto
     * @return
     */
    int queryAddMSpecificationExist(String companyId,SpecificationAddDto specificationAddDto);

    /**
     * 编辑时查重
     * @param companyId
     * @param specificationEditDto
     * @return
     */
    int queryEditMSpecificationExist(String companyId,SpecificationEditDto specificationEditDto);

    /**
     * 查询规格码表
     * @param companyId
     * @return
     */
    List<MSpecification> queryProduceMSpecificationList(String companyId);

}
